<template>
	<view>
		<button type="primary" @click="tel()">scanCode</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			tel() {
				uni.scanCode({
					success: function(res) {
						console.log(JSON.stringify(res.result));
					}
				});
			}
		}
	}
</script>

<style>
</style>
